import axios from './axios'
// export const login=(data:{})=> axios.get('/login',{params:data})
export const login = (data:{}) => axios.post('/login',data) //登录验证，获取token
export const capthcha = () => axios.get('/captcha')     //获取图形验证码

// 患者管理
export const patinetlists = () => axios.get('/patientlists')
export const patientlistsinsert = (data:{}) => axios.post('/patientlistsinsert',data)
export const patientlistsinserts = (data:{}) => axios.get('/patientlistsinserts',{params:data})
export const patientserch = (data:{}) => axios.post('/patientserch',data)   //搜索
// 根据患者id查询信息
export const patientid = (data:{}) => axios.get('/patientid',{params:data})
export const patientcard = (data:{}) => axios.get('/patientcard',{params:data})
// 编辑患者信息
export const patientupdate = (data:{}) => axios.post('/patientupdate',data)
export const patientlogoff = (data:{}) => axios.post('/patientlogoff',data) //注销
export const patientcardlogoff = (data:{}) => axios.post('/patientcardlogoff',data) //就诊卡挂失作废
export const patientcardinsert = (data:{}) => axios.post('/patientcardinsert',data) //添加就诊卡信息
export const patientmedical = (data:{}) => axios.get('/patientmedical',{params:data})   //根据病历号查询患者信息

// 登录日志
export const loginloglists = () => axios.get('/loginloglists')  //查询
export const loginlogserch = (data:{}) => axios.get('/loginlogserch',{params:data})     //搜索

// 参数配置
export const parameterlists = () => axios.get('/parameterlists') //查询
export const parameterinsert = (data:{}) => axios.post('/parameterinsert',data) //新增
export const parameterdel = (data:{}) => axios.post('/parameterdel',data) //删除
export const parameterlistsID = (data:{}) => axios.get('/parameterlistsID',{params:data})   //根据id查询信息
export const parameterupdate = (data:{}) => axios.post('/parameterupdate',data) //修改
export const parameterserch = (data:{}) => axios.get('/parameterserch',{params:data})   //搜索

// 字典管理
export const dictionarylists = () => axios.get('/dictionarylists')  //查询字典列表
export const dictionarydetaillists = (data:{}) => axios.get('/dictionarydetaillists',{params:data})  //查询字典详情列表
export const dictionarydetailinsert = (data:{}) => axios.post('/dictionarydetailinsert',data)   //新增
export const dictionarydetailupdate = (data:{}) => axios.post('/dictionarydetailupdate',data)   //更新
export const dictionarydetaildel = (data:{}) => axios.post('/dictionarydetaildel',data)          //删除


// 挂号管理
export const departlists = () => axios.get('/departlists')      //查询科室
export const doctorlists = (data:{}) => axios.get('/doctorlists',{params:data})     //查询医生
export const datelists = () => axios.get('/datelists')      //查询日期
export const schedulecountlists = (data:{}) => axios.get('/schedulecountlists',{params:data})   //查询号源
export const doctorinfo = (data:{}) => axios.get('/doctorinfo',{params:data})       //查询医生信息
export const seldate = (data:{}) => axios.get('/seldate',{params:data})
export const registerlist = (data:{}) => axios.post('/registerlist',data)
export const registerlistsel = () => axios.get('/registerlistsel') //查询挂号信息
export const registerliststa = (data:{}) => axios.get('/registerliststa',{params:data}) //根据状态查询
export const registerlistid = (data:{}) => axios.get('/registerlistid',{params:data}) //根据id查询信息
export const registerlistcan = (data:{}) => axios.post('/registerlistcan',data) //取消挂号
export const blacklist = () => axios.get('/blacklist')  //查询黑名单列表
export const blacklistinsert = (data:{}) => axios.post('/blacklistinsert',data) //添加黑名单
export const blacklistdel = (data:{}) => axios.post('/blacklistdel',data)   //移除黑名单
export const blacklistserach = (data:{}) => axios.get('/blacklistserach',{params:data})     //搜索黑名单
export const schedutimes = (data:{}) => axios.get('/schedutimes',{params:data})     //查询医生的排班信息

// 医生排班
export const doctorschedut = (data:{}) => axios.get('/doctorschedut',{params:data}) //根据科室查询医生排班情况
export const insetsechedus = (data:{}) => axios.post('/insetsechedus',data)         //新增排班